-- GENERATED SPELL FOR [Arcane Wyrm] --


function spell0_26322(pUnit, Event) --@Arcane Infusion,n/a--
pUnit:FullCastSpellOnTarget(51732,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26322', 4000, 1)
end

function Sorts_26322(pUnit, Event)
local choix_sorts_26322 = math.random(0, 0)
if choix_sorts_26322 == 0 then
pUnit:RegisterEvent('spell0_26322', 1, 1)
end
end

function mob26322_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26322', math.random(1500, 3000), 1)
end

function mob26322_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26322_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26322_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26322, 1, 'mob26322_Action')
RegisterUnitEvent(26322, 2, 'mob26322_Leave')
RegisterUnitEvent(26322, 3, 'mob26322_Kill')
RegisterUnitEvent(26322, 4, 'mob26322_Die')
